/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.evangelion.core.serviceImpl;

import com.evangelion.core.bean.Seccione;
import com.evangelion.core.bean.Vehiculo;
import com.evangelion.core.dao.VehiculoDao;
import com.evangelion.core.service.VehiculoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @author Usuario
 */
@Service("vehiculoService")
public class VehiculoServiceImpl implements VehiculoService {

    @Autowired
    private VehiculoDao vehiculoDao;

    @Override
    public void save(Vehiculo vehiculo) {
        vehiculoDao.save(vehiculo);
    }

    @Override
    public void delete(Vehiculo vehiculo) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public Vehiculo find(Vehiculo vehiculo) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public Vehiculo findObjByParam(String parametro, String valor) throws Exception {
        return vehiculoDao.findObjByParam(parametro, valor);
    }

    @Override
    public List<Vehiculo> findByParam(String parametro, String valor) {
        return vehiculoDao.findListByParam(parametro, valor);
    }

    @Override
    public List<Vehiculo> ListActive(Vehiculo vehiculo) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public List<Vehiculo> findListByParam(String parametro, String valor) {
        return (List) vehiculoDao.findListByParam(parametro, valor);
    }

    @Override
    public List<Vehiculo> findListByParamSeccion(Seccione seccion, String parametro, String valor) {
        return vehiculoDao.findListByParamSeccion(seccion, parametro, valor);
    }

}
